/*
 * Copyright 2025 arisgo@163.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.arisgo.cloud.attendance.clazz.vo;

import com.arisgo.cloud.web.model.NumberId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalTime;
import java.util.List;

/**
 * 班段
 *
 * @author Coulson
 * @since 2024-12-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "班明细")
public class ClassDetailVo extends NumberId {

    /**
     * 租户
     */
    @Schema(name = "tenantId", description = "租户")
    private Long tenantId;

    /**
     * 班次
     */
    @Schema(name = "classId", description = "班")
    private Long classId;

    /**
     * 休息时间
     */
    @Schema(name = "workTime", description = "工作时间")
    private List<LocalTime> workTime;

    /**
     * 开始时间
     */
    @Schema(name = "startTime", description = "开始时间")
    private LocalTime startTime;

    /**
     * 结束时间
     */
    @Schema(name = "endTime", description = "结束时间")
    private LocalTime endTime;

    /**
     * 时长（h）
     */
    @Schema(name = "duration", description = "时长（h）")
    private BigDecimal duration;

    /**
     * 休息时间
     */
    @Schema(name = "restTime", description = "休息时间")
    private List<LocalTime> restTime;

    /**
     * 休息开始时间
     */
    @Schema(name = "restStartTime", description = "休息开始时间")
    private LocalTime restStartTime;

    /**
     * 休息结束时间
     */
    @Schema(name = "restEndTime", description = "休息结束时间")
    private LocalTime restEndTime;

}
